//
//  JRColorHelper.h
//  ikarosKit
//
//  Created by rui on 2024/10/22.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

/**
 *  通过0xffffff的16进制数字创建颜色
 *
 *  @param aRGB 0xffffff
 *
 *  @return UIColor
 */
FOUNDATION_EXTERN UIColor *kJRColorWithRGB(NSUInteger aRGB);

/**
 *  Create a color from a HEX string.
 *  It supports the following type:
 *  - #RGB
 *  - #ARGB
 *  - #RRGGBB
 *  - #AARRGGBB
 *
 *  @param hexString NSString
 *
 *  @return Returns the UIColor instance
 */
FOUNDATION_EXTERN_INLINE UIColor *kJRHexColor(NSString *hexString);
FOUNDATION_EXTERN_INLINE UIColor *kJRHexColorWithAlpha(NSString *hexString, CGFloat alpha);


NS_ASSUME_NONNULL_END
